package itheima.com.Day15.socketDemo08;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(9999);
        while (true) {
            Socket accept = ss.accept();
           MyThread mt = new MyThread(accept);
           new Thread(mt).start();

        }
//        ss.close();
    }
}
